HOST=http://localhost:8080
SOAP=${HOST}/locustree/locustree/soap
WSDL=${SOAP}?wsdl
test-ws:
	mkdir -p generated
	mkdir -p build
	mkdir -p dist
	wget -O build/input.wsdl ${WSDL}
	xmllint --format build/input.wsdl > a; mv a build/input.wsdl
	${JAVA_HOME}/bin/wsimport -verbose -d generated -s generated -keep build/input.wsdl
	cp -r generated/* src/* build
	${JAVA_HOME}/bin/javac -sourcepath src -cp build -d build build/TestServices.java
	${JAVA_HOME}/bin/jar cvf dist/test.jar -C build .
	#rm -rf build
	${JAVA_HOME}/bin/java -cp dist/test.jar TestServices
test-curl:
	curl -X POST -H "Content-Type: text/xml" -d @soap/organisms.soap ${SOAP}
	curl -X POST -H "Content-Type: text/xml" -d @soap/chromosomes.soap ${SOAP}
	curl -X POST -H "Content-Type: text/xml" -d @soap/tracks.soap ${SOAP}
